<!--$embed{"header.htm"}-->

<div class="mainarea">
<div class="maininner">

	<form method="post" action="admincp.html">
	<div class="block style4">
		
		<table cellspacing="3" cellpadding="3">
		<tr><th>群组名*</th><td><input type="text" name="tagname" value="${tagname}"></td>
			<th>是否锁定</th><td>
			<select name="close">
			<option value="">不限制</option>
			<option value="1"<!--$if{ close=='1'}--> selected<!--$end-->>锁定</option>
			</select>
			</td>
		</tr>
		<tr>
			
			<th>加入权限</th>
			<td>
				<select name="joinperm">
					<option value="">全部</option>
					<option value="0"${joinperms['0']}>公开</option>
					<option value="1"${joinperms['1']}>审核</option>
					<option value="2"${joinperms['2']}>私密</option>
				</select>
			</td>
			<th>浏览权限</th>
			<td>
				<select name="viewperm">
					<option value="">全部</option>
					<option value="0"${viewperms['0']}>公开</option>
					<option value="1"${viewperms['1']}>封闭</option>
				</select>
			</td>
		</tr>
		<tr>
			<th>指定群组ID</th>
			<td colspan="3">
				<input type="text" name="tagid" value="${tagid}" />
			</td>
		</tr>
		<tr>
			<th>归属栏目</th><td colspan="3">
			<select name="fieldid">
			<option value="">全部</option>
			<!--$for{entry:_SGLOBAL['profield']} $set{value=entry.value}-->
			<option value="${value['fieldid']}"<!--$if{ fieldid==value['fieldid'].toString}--> selected<!--$end-->>${value['title']}</option>
			<!--$end-->
			</select>
			</td>
		</tr>
		<tr><th>用户数</th><td colspan="3">
			<input type="text" name="membernum1" value="${membernum1}" size="10"> ~
			<input type="text" name="membernum2" value="${membernum2}" size="10">
		</td></tr>
	
		<tr><th>结果排序</th>
		<td colspan="3">
		<select name="orderby">
		<option value="">默认排序</option>
		<option value="membernum"${orderby['membernum']}>成员数</option>
		</select>
		<select name="ordersc">
		<option value="desc"${ordersc['desc']}>递减</option>
		<option value="asc"${ordersc['asc']}>递增</option>
		</select>
		<select name="perpage">
		<option value="20"${perpages['20']}>每页显示20个</option>
		<option value="50"${perpages['50']}>每页显示50个</option>
		<option value="100"${perpages['100']}>每页显示100个</option>
		</select>
		<input type="hidden" name="ac" value="mtag">
		<input type="submit" name="searchsubmit" value="搜索" class="submit">
		</td>
		</tr>
		</table>

	</div>
	</form>

<!--$if{ list}-->

	<form method="post" action="admincp.html?ac=mtag">
	<input type="hidden" name="formhash" value="<!--${&com.heaven.web.utils.Common.formhash()}-->" />
	
	<div class="bdrcontent">
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th>群组名</th>
		<th>归属栏目</th>
		<th>用户数</th>
		<th>群主</th>
	</tr>
	<!--$for{value:list}-->
	<tr>
		<td><input type="checkbox" name="ids[]" value="${value['tagid']}">
		<a href="space.html?do=mtag&tagid=${value['tagid']}" target="_blank">${value['tagname']}</a><!--$if{ value['close']}-->(<a href="admincp.html?ac=mtag&close=${value['close']}">锁定</a>)<!--$end--></td>
		<td><a href="admincp.html?ac=mtag&fieldid=${value['fieldid']}">${_SGLOBAL['profield'][value['fieldid']]['title']}</a></td>
		<td>${value['membernum']}</td>
		<td>[<a href="cp.html?ac=mtag&op=manage&tagid=${value['tagid']}&subop=base" target="_blank">群组管理</a>]</td>
	</tr>
	<!--$end-->
	</table>
	</div>
	
	<div class="footactions">
		<input type="hidden" name="mpurl" value="${mpurl}">
		<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选
		<input type="radio" name="optype" value="delete"> 删除
		<input type="radio" name="optype" value="merge"> 合并到其他群组:
			<select name="newfieldid">
			<!--$for{entry:_SGLOBAL['profield']} $set{value=entry.value}-->
			<option value="${value['fieldid']}">${value['title']}</option>
			<!--$end-->
			</select>
			<input type="text" name="newtagname" value="" size="5">
		<input type="radio" name="optype" value="close"> 锁定
		<input type="radio" name="optype" value="open"> 开放
		<input type="submit" name="opsubmit" value="执行操作" onclick="return confirm('本操作不可恢复，确认继续？');" class="submit">
	
		<div class="pages">${multi}</div>
	</div>

	</form>
<!--$else-->
	<div class="bdrcontent">
		<p>指定条件下还没有数据</p>
	</div>
<!--$end-->
</div>
</div>

<div class="side">
	<!--$embed{"side.htm"}-->
</div>

<!--$embed{"footer.htm"}-->